package com.dx.wx.controller;

import com.dx.wx.service.DxProductService;
import com.ejlchina.data.Array;
import com.yf.response.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RequestMapping("/api/dx/product")
@RestController
public class ApiDxProductController {

    //所有产品
    @GetMapping("/")
    public R list(String appId){
        Array array = dxProductService.findProduct(appId);
        return R.ok(array.toString());
    }


    @Autowired
    private DxProductService dxProductService;

}
